package com.cx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL) // 当有字段为null时，该字段不会被加载到json中
public class Menu implements Serializable {
    private static final long serialVersionUID = 2145267459971973316L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String label;
    private String name;
    private String path;
    private String url;
    private String perms;
    private String icon;

}
